if(window.jQuery && window.jQuery.PPF && !window.PPF.shiti_jianda) {
	(function($){
		var data = { xx : {} };
		var xCount = 0;
		$PPF.extend({
			//to add!
			shiti_jianda: {
				//检查
				check : function(){
					var _r = $PPF.validate.check( $("[ppf='shiti']") , 3 );
					$("[ppf='shiti']").each(function(){
						data[$(this).attr('name')] = $(this).val();
					});
					return _r;
				},
				//保存
				save: function(url,callback){
					if(this.check()) {
						var query = {};
						query = $PPF.param(data);
						$PPF.tips( {msg: "保存中"} );	//保存中
						if(typeof callback === "undefined") {
							callback = function(data){
								$PPF.tips( {msg: $PPF.jsonmsg(data,"保存成功") , timeout:3000} );
							}
						}
						$.post(url,query,callback,'json');
					}
				}
			}
			//to add!
		});
	})(jQuery);
}